function (e) {
    e.lkcnt = 0;
    e.likeItem = function () {
        var a = this, b = a.attributes['xref'];
        if (!a || !b) return false;

        $XR(_MEDIA_PATH + 'crawling/like-' + b.value.toString() + '.bdscript', function (x) {
            rx = 0;
            try { eval('rx=' + x.responseText); x = null; }
            catch (r) { x = null; }

            if (rx && rx.like) {
                if (e.lkcnt) { e.lkcnt.innerHTML = (rx.like.cnt||1).toString(); }
                alert('Cáº£m Æ¡n báº¡n Ä‘Ă£ thĂ­ch ná»™i dung nĂ y!');
            }
            else {
                alert('Báº¡n Ä‘Ă£ chá»n thĂ­ch ná»™i dung nĂ y!');
            }
        });
        return false;
    };

    var a = $C(e, 'like_clk');
    if (a) {
        for (var i = 0; i < a.length; i++) {
            a[i].onclick = e.likeItem;
            var g = $T(a[i], 'b', 0);
            if (g) { e.lkcnt = g; }
        }
    }

    a = $C(e, 'send_page', 'a', 0);
    if (a) { a.onclick = function () { if (PopFrame) { PopFrame.show(this.href, 540, 310); return false; } return true; }; }

    a = $C(e, 'share_fb');
    if (a) {
        for (var i = 0; i < a.length; i++) {
            a[i].innerHTML = '<iframe src="//www.facebook.com/plugins/like.php?href=' + escape(window.location.href) + '&amp;width&amp;layout=button_count&amp;action=like&amp;show_faces=true&amp;share=true&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width: 100%; height:30px;" allowTransparency="true"></iframe>';
        }
    }

    function tw(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https'; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = p + '://platform.twitter.com/widgets.js'; fjs.parentNode.insertBefore(js, fjs); } }

    a = $C(e, 'share_tw');
    if (a) {
        for (var i = 0; i < a.length; i++) {
            a[i].innerHTML = '<a href="https://twitter.com/share" class="twitter-share-button" data-via="bongdaplus">Tweet</a>';
            !tw(document, 'script', 'twitter-wjs');
        }
    }

    a = $C(e, 'share_gp');
    if (a) {
        for (var i = 0; i < a.length; i++) {
            a[i].innerHTML = '<g:plusone></g:plusone>';
        }
    }

    window.___gcfg = { lang: 'vi' };
    var po = document.createElement('script');
    po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
};
    e.repos = function () {
        var a = e.offsetWidth;
        if (a < 1160) return;

        a = (a - 1330) / 2;
        var b = $C(e, 'adft_lft', 'div');
        for (var i = 0; b && i < b.length; i++) {
            b[i].style.left = a + 'px';
        }
        b = $C(e, 'adft_rgt', 'div');
        for (var i = 0; b && i < b.length; i++) {
            b[i].style.right = a + 'px';
        }
    };

    e.repos();
    Handlers.add(Handlers._RESIZE, e.repos);
}